package com.guchenbo.study.aop;

import org.aopalliance.aop.Advice;
import org.springframework.aop.Advisor;

/**
 * @Author guchenbo
 * @Date 2020/1/3.
 */
public class LogAdvisor implements Advisor {

    private Advice advice;

    @Override
    public Advice getAdvice() {
        return advice;
    }

    @Override
    public boolean isPerInstance() {
        return false;
    }

    public void setAdvice(Advice advice) {
        this.advice = advice;
    }
}
